const db = require('../db')

module.exports = db.defineModel('sc_version', {
	_id: db.STRING(),
	name: {
		type: db.STRING(),
		allowNull: true,
		defaultValue: '', 
		comment: 'APP名称'
	},
	num: {
		type: db.INTEGER(),
		allowNull: true,
		defaultValue: 0, 
		comment: '数字'
	},
	url: {
		type: db.STRING(),
		allowNull: true,
		defaultValue: '', 
		comment: '下载地址'
	},
	
	version: {
		type: db.STRING(),
		allowNull: true,
		defaultValue: '', 
		comment: '版本号'
	}
})
